import request from '@/plugin/axios'
import util from '@/libs/util.js'

const getInspectTaskList =   function getInspectTaskList(data) {

    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/InspectTask/List',
        method: 'post',
        data
    })
}

const getInspectTaskExecuteList =   function getInspectTaskExecuteList(data) {

    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/InspectTask/executeList',
        method: 'post',
        data
    })
}

const submitInspectTask =   function submitInspectTask(data) {

    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/InspectTask/Add',
        method: 'post',
        data
    })
}
const deleteInspectTask =   function deleteInspectTask(data) {

    data.UserId = util.cookies.get('uuid')
    return request({
        url: '/InspectTask/Delete',
        method: 'post',
        data
    })
}
export {
    submitInspectTask,
    getInspectTaskList,
    deleteInspectTask,
    getInspectTaskExecuteList
}
